Page({
  data: {
    imageList:[
    'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/shixian1.jpg',
    'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/shixian2.jpg',
    'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/shixian3.jpg',

  ],
  imageList2:[
    'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/shixian_class1.jpg',
    'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/shixian_class2.jpg',
    'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/shixian_class3.jpg',
  ],
  latitude: 30.21203,
  longitude: 103.87239,
  //标记点
  markers: [{
    id: 0,
    name: "时线音乐工作室",
    address: "彭山区彭溪街道学院南路大学城11栋205号",
    latitude: 30.21212,
    longitude: 103.87165,
    src: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/markerNew.png',
  }]
  },
    Call() {
        wx.makePhoneCall({
        phoneNumber: '16608209080'
        })
    },
    navRoad(event) {
        console.log(event)
        wx.getLocation({ //获取当前经纬度
        type: 'wgs84', //返回可以用于wx.openLocation的经纬度，
        success: function (res) {
            wx.openLocation({ //使用微信内置地图查看位置。
            latitude: event.currentTarget.dataset.marker.latitude, //要去的纬度-地址
            longitude: event.currentTarget.dataset.marker.longitude, //要去的经度-地址
            name: event.currentTarget.dataset.marker.name,
            address: event.currentTarget.dataset.marker.address
            })
        }
        })
    }
})